package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Kangjunyaowujieguo;
import ystp.model.KangjunyaowujieguoExample;

public interface KangjunyaowujieguoMapper {


    List<Map<String, Object>> findByxiangmuId(@Param("xiangmuid") String mmxiangmuId);


    Object getKangJunResultCount(@Param("xiangmuid") String mmxiangmuId,
                               @Param("userid") String mmuserId,
                               @Param("result") String mmresult);

    List<Map<String, Object>> getGuizeCount(@Param("userid") String mmuserId,
                                            @Param("xiangmuid") String mmxiangmuId,
                                            @Param("guizebianhao") String mmguizebianhao);

    List<Map<String, Object>> getZiGuizeCount(@Param("userid") String mmuserId,
                                            @Param("xiangmuid") String mmxiangmuId,
                                            @Param("ziguizebianhao") String mmziguizebianhao);

    List<Map<String, Object>> getPinzhongpaixu(@Param("xiangmuid") String mmxiangmuId);

    List<Map<String, Object>> getVoitedPinzhongList(@Param("xiangmuid") String mmxiangmuId,@Param("userid") String mmuserId);

    List<Map<String, Object>> getVoitedFenleiList(@Param("xiangmuid") String mmxiangmuId,
                                                  @Param("userid") String mmuserId,
                                                  @Param("fenlei") String mmfenlei);

    List<Map<String, Object>> findAgreedFenleiList(@Param("xiangmuid") String mmxiangmuId,
                                                  @Param("userid") String mmuserId);


    List<Map<String, Object>> getAgreedPinguiListByPinzhong(@Param("xiangmuid") String mmxiangmuId,
                                                  @Param("pinzhong") String mmpinzhong);

    List<Map<String, Object>> getResultByPinzhongAndXiangmuId(@Param("pinzhong") String mmpinzhong,
                                                            @Param("xiangmuid") String mmxiangmuId,
                                                              @Param("userid") String mmuserId);

    List<Map<String, Object>> getResultByPinguiAndXiangmuId(@Param("pingui") String mmpingui,
                                                              @Param("xiangmuid") String mmxiangmuId);

    int countByExample(KangjunyaowujieguoExample example);

    int deleteByExample(KangjunyaowujieguoExample example);

    int deleteByPrimaryKey(String id);

    int insert(Kangjunyaowujieguo record);

    int insertSelective(Kangjunyaowujieguo record);

    List<Kangjunyaowujieguo> selectByExample(KangjunyaowujieguoExample example);

    Kangjunyaowujieguo selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Kangjunyaowujieguo record, @Param("example") KangjunyaowujieguoExample example);

    int updateByExample(@Param("record") Kangjunyaowujieguo record, @Param("example") KangjunyaowujieguoExample example);

    int updateByPrimaryKeySelective(Kangjunyaowujieguo record);

    int updateByPrimaryKey(Kangjunyaowujieguo record);
}